<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>聊天室客户端</title>
</head>
<body>
    <h1>
        聊天室
    </h1>
    <div id="content"name='name' style="overflow-y:scroll;width:400px;height:300px;border:solid 1px black"></div>
<div>
    <input type="text" id="msg" >
    <button id="send">发送</button>

</div>
<script>
    document.querySelector('#sumbit').addEventListener('click',function(){
        console.log(msg.value)
        let message = msg.value
        ws.send(msg.value)
        msg.value=''
    })
</script>
</body>
</html>